package net.sunofbeach.blog.dao;

import net.sunofbeach.blog.pojo.NewComment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface NewCommentDao extends JpaRepository<NewComment, String>, JpaSpecificationExecutor<NewComment> {
    Page<NewComment> findAllByAndArticleId(String articleId, Pageable pageable);
}

